package com.yunrui.device.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunrui.device.entity.CabinetSlot;
import com.yunrui.device.mapper.CabinetSlotMapper;
import com.yunrui.device.service.CabinetSlotService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CabinetSlotServiceImpl extends ServiceImpl<CabinetSlotMapper, CabinetSlot> implements CabinetSlotService {
    @Override
    public List<CabinetSlot> getSlotsByCabinetId(Long cabinetId) {
        return this.list(new QueryWrapper<CabinetSlot>().eq("cabinet_id", cabinetId));
    }
}